lib: fix 'dox' feature
authorLuca BRUNO <luca.bruno@coreos.com>
Mon, 2 Aug 2021 15:15:51 +0000 (15:15 +0000)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:56 +0000 (12:53 -0400)
This makes sure docs can be properly built when using the 'dox'
feature. It should fix auto-builds on docs.rs.

rust-bindings/rust/src/lib.rs

index 8919c232c313818e8d62b913ba23060c06567c83..11b362907bbb332fe2a2b73085e987eb973ea139 100644 (file)
@@ -4,7 +4,7 @@
 //! tools that combines a "git-like" model for committing and downloading bootable filesystem trees,
 //! along with a layer for deploying them and managing the bootloader configuration.
 
-#![doc(html_root_url = "https://fkrull.gitlab.io/ostree-rs")]
+#![cfg_attr(feature = "dox", feature(doc_cfg))]
 
 // Re-export our dependencies.  See https://gtk-rs.org/blog/2021/06/22/new-release.html
 // "Dependencies are re-exported".  Users will need e.g. `gio::File`, so this avoids